﻿@using FTBS.Models.BLO
@model List<FTBS.Models.Entities.Comment>
@{
    UserBLO userBlo = new UserBLO();
}

@foreach (var item in Model)
{
    <div style="border: 1px solid rgb(121, 121, 121); margin: 6px; border-radius: 10px; background-color: rgb(214, 248, 214)">
        @if (this.Session["Account"] != null && userBlo.LoadUserByUserName(item.UserName).FullName == this.Session["Account"].ToString().Trim())
                            {
            <div style="font-size: 14px; color: darkcyan; margin-left: 10px; border-bottom: 1px solid  rgb(224, 224, 224); font-size: 18px; font-weight: bold">
                @userBlo.LoadUserByUserName(item.UserName).FullName
            </div>
                            }
                            else
                            {
            <div style="font-size: 14px; color: crimson; margin-left: 10px; border-bottom: 1px solid  rgb(224, 224, 224); font-size: 18px; font-weight: bold">
                @userBlo.LoadUserByUserName(item.UserName).FullName
            </div>
                            }
        <p style="padding-left: 12px; margin: 5px 0px 2px 0px; font-size: 14px;height:100%;width:98%;word-wrap:break-word">
            @item.CommentContent
        </p>
    </div>
}